package com.ocpap.rest.serviceImpl;

import com.ocpap.rest.entity.Comment;
import com.ocpap.rest.mapper.CommentMapper;
import com.ocpap.rest.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentServiceImpl implements CommentService {


    @Autowired
    private CommentMapper commentMapper;

    @Override
    public List<Comment> findAll(Comment comment) {
        return commentMapper.findAll(comment);
    }

    @Override
    public int insert(Comment comment) {
        return commentMapper.insert(comment);
    }
}
